import request from '@/utils/request'

// 详情
export function getInfo(id) {
  return request({
    url: '/system/richContent/' + id,
    method: 'get',
    loading: true
  })
}

// 编辑
export function edit(data) {
  return request({
    url: '/system/richContent',
    method: 'put',
    loading: true,
    data: data
  })
}

// 新增
export function add(data) {
  return request({
    url: '/system/richContent',
    method: 'post',
    loading: true,
    data: data
  })
}
